export default {
  props: {
    row: Object,
    render: Function,
    index: Number,
    column: {
      type: Object,
      default: null
    }
  },
  render: function (data:any) {
    const params = {
      row: data.row,
      index: data.index,
      column: data.column
    }
    if (data.column) params.column = data.column
    return data.render(params)
  }
}
